
package com.joysuch.wwyt.datadump.biz.convertor;

import cn.zlg.common.datadump.annotation.DataDumpField;
import cn.zlg.common.datadump.convertor.FieldValueConvert;
import com.joysuch.wwyt.bp.enums.ProductionFacilityStates;
import org.springframework.stereotype.Component;

@Component
public class ExportMhChemProudctProductTypeConvertor implements FieldValueConvert<Long, String> {

    @Override
    public String convert(Object bean, Long value, DataDumpField dataField) {
        if(value == null) {
            return null;
        }
        switch (value.intValue()) {
            case 1: return "产品";
            case 2: return "中间产品";
            case 3: return "进口化学品";
            case 4: return "原料";
        }
        return null;
    }

}
